package com.example.treeutil.model.anno;

import com.example.treeutil.tree.NodeValue;

/**
 * 2022/12/9
 *
 * @author fengyu
 */
@NodeValue(isCatalog = false)
public class 蛋糕 {
    @NodeValue(field = NodeValue.FIELD.ID)
    private String id;

    @NodeValue(field = NodeValue.FIELD.PID)
    private String pid;

    private String 名称;
    private int index = 0;
    private double 单价;
    private String 有效期;

    public 蛋糕() {}
    public 蛋糕(String id, String pid, String name,  double j, String sss) {
        this.id = id;
        this.pid = pid;
        this.名称 = name;
        this.单价 = j;
        this.有效期 = sss;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String get名称() {
        return 名称;
    }

    public void set名称(String 名称) {
        this.名称 = 名称;
    }

    /**
     * 没有该注解就不排序了*
     * @return
     */
    @NodeValue(method = NodeValue.METHOD.GET_INDEX)
    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public double get单价() {
        return 单价;
    }

    public void set单价(double 单价) {
        this.单价 = 单价;
    }

    public String get有效期() {
        return 有效期;
    }

    public void set有效期(String 有效期) {
        this.有效期 = 有效期;
    }
}
